
/**

 * this is the Command line interface
 *
 */
import java.io.IOException;
import java.util.Scanner;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;
//just for test
import Command.DirectCommand;
import Log.Log;



public class main {

	/**
	 * @param args
	 */
	
	public static boolean tracking=false;
	public static void printOptions()
	{
		System.out.println("Choose one of the options: press 0 to Exit");
		System.out.println("1.  Start to tracking");
		System.out.println("2.  Stop to tracking");
		System.out.println("3.  Add a new Tag");
		System.out.println("4.  Add File to Tag");
		System.out.println("5.  Delete File from Tag");
		System.out.println("6.  Delete File- from all the Tags");
		System.out.println("7.  Delete Tag");
		System.out.println("8.  Print the Log");
		System.out.println("9.  Change the name of File");
		System.out.println("10. Change the name of Tag");
		System.out.println("11. Print all the Tags");  
		System.out.println("12. Checking if we have to Labele");
		System.out.println("13. To handle System's requests (Labeling files that was tracked)");
		System.out.println("0. To Exit");
		
		/** don't know if we need that:
		 * 
		System.out.println("15.  Tracking File by direct");
		System.out.println("16.  Tracking File by type");
		 */
		
	}
	public static void main(String[] args) throws IOException {
		
		BeanFactory beanFactory = new XmlBeanFactory(new ClassPathResource("ProjectExec.xml"));
		
		DirectCommand dc=(DirectCommand)beanFactory.getBean("directCmnd");
		System.out.println("Main: Welcome to our File Management System ");

		System.out.println("Main: Welcome to our File Management System ");
		int option=-1;
		String[] test = {"c:\\test","c:\\test2"};

		System.out.println(" "+test[0]+" ");
		/*while(option!=0)
		{
			printOptions();
			Scanner sc = new Scanner(System.in);
			option= sc.nextInt();
			System.out.println("Your number is: "+ option);
			interpter.makeOption(option);
			
		}*/
		
		
	}

}
